// 角色类型
export interface RoleType {
    id?: number;
    name?: string;
}

export interface RolesResponse extends ResponseData {
    data: RoleType[];
}

export interface RoleResponse extends ResponseData {
    data: RoleType;
}

export interface RolePageRequest {
    name: string;
    currentPage: number;
    pageSize: number;
}

export interface RolePageResponse extends ResponseData {
    data: RolePageType;
}

export interface RolePageType {
    total: number;
    records: RoleType[];
}

export interface RoleEditResponse extends ResponseData {
    data: boolean;
}

export interface RoleAllocMenuRequest {
    id: number;
    menuIdList: number[];
}

export interface RoleLoadMenuResponse extends ResponseData {
    data: number[];
}

// 定义全部接口返回数据都拥有ts类型
interface ResponseData {
    code: number;
    message: string;
}
